package com.itlong.cloud.noncore.commons;

import com.itlong.cloud.POJO.DTO.operate.UploadImageDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * <desc>
 *     上传图片到图片服务器公共模块接口暴露。
 * <desc/>
 *
 * @createDate 2017/10/17.
 */
@FeignClient("non-core-service")
public interface IUploadImageServiceClient {

    /**
     * <desc>
     *      上传图片资源。
     * <desc/>
     *
     * @param  saveDTO 图片资源对象
     * @return  返回图片链接地址
     * @author shengen.T
     * @createDate 2017/10/20
     */
    @RequestMapping(path="/uploadImg",method = {RequestMethod.POST})
    String uploadImg(@RequestBody UploadImageDTO saveDTO) throws Exception;
}
